from flask.blueprints import Blueprint
from flask_restful import Api
#路由
from . import views

# 1. 创建蓝图实例对象
user_bp=Blueprint('user_bp',__name__,url_prefix='/app/v1_0')
# 2. 创建Api实例对象
user_api=Api(user_bp)


user_api.add_resource(views.UserResouce,'/sms/codes/<mobile>')
user_api.add_resource(views.AuthorizationResource, '/authorizations')
user_api.add_resource(views.Userinfo,'/user')
user_api.add_resource(views.Channels,'/channels')
# user_api.add_resource(views.Channels,'/user/channels')